<?php
class omeauto_autoconfirm_branch_weight{
    var $name = "权重最高的仓库";
    
    function get_branch($order_sdf,$branch_list){
        $oBranch = app::get('ome')->model('branch');
        $rows = $oBranch->getList("branch_id",array('branch_id'=>$branch_list),0,1,"weight DESC");
        
        return $rows[0]['branch_id'];
    }
}